package com.caregiver.watch.business.user.model.dto;

import com.caregiver.watch.business.user.model.po.UserHealthGoal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Description: 更新用户健康目标参数
 * @program: caregiver-watch
 * @author: 疆戟
 * @create: 2025-10-03 23:14
 */
@Data
@Schema(title = "更新用户健康目标参数")
public class UpdateUserHealthGoalParam extends UserHealthGoalParam {

    @Schema(title = "用户健康目标ID")
    private Long userHealthGoalId;


    public UserHealthGoal toPo(Long userId) {
        UserHealthGoal po = super.toPo(userId);
        po.setId(userHealthGoalId);
        return po;
    }
}
